package com.huawei.gamebox.service.common.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.huawei.gamebox.service.common.cardkit.card.CloverEntryCardV2;
import com.huawei.gamebox.service.common.cardkit.card.CloverEntryLandscapeCardV2;
import o.azb;
import o.cih;
import o.epv;
import o.exp.j;

public class CloverEntryNodeV2 extends BaseGsNode {
    public CloverEntryNodeV2(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        View inflate;
        cih cloverEntryCardV2;
        ॱ(viewGroup);
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        if (epv.ʼ(this.ॱ)) {
            inflate = from.inflate(j.ˋ, null);
            cloverEntryCardV2 = new CloverEntryCardV2(this.ॱ);
        } else {
            inflate = from.inflate(j.ॱ, null);
            cloverEntryCardV2 = new CloverEntryLandscapeCardV2(this.ॱ);
        }
        cloverEntryCardV2.ˏ(inflate);
        ˊ(cloverEntryCardV2);
        viewGroup.addView(inflate);
        return true;
    }

    private void ॱ(ViewGroup viewGroup) {
        viewGroup.setPadding(azb.ˊ(this.ॱ), 0, azb.ˏ(this.ॱ), 0);
    }
}
